<template>
  <div>
      <div  v-for="(item, index) in shopList" :key="index"  @click="goDetail(item.goodsid)">
           <van-card
      :tag="item.type"
      :price="item.pirce"
      :desc="item.msg"
      :title="item.name"
      :thumb="item.img"
      :origin-price="item.oldpirce"
    /> 
      </div>
   
  </div>
</template>

<script>
export default {
  props:{
    shopList:{
    type: Array ,
    default:[]
    }
  },
  data() {
    return {
      go : "777",
    };
  },
  methods: {
    goDetail(id) {
    this.$router.push("/DetailAll?id=" + id);
    },
    // gofather(){
    //   this.$emit("postsubmit",this.go);
    // }
  },
};
</script>

<style>
button{
  width: 10px;
  height: 10px;
  background-color: red;
}
</style>